//引入express
const express = require("express");
//创建应用对象
const app = express();
//配置静态资源
app.use(express.static("/public"));
//启动服务,监听3000端口
app.listen("3000", () => {
    console.log("web应用启动成功: http://localhost:3000");
})